﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class User
    {
        //1.定义一个用户类，存放用户的账号、用户名和密码属性；
        //2.在用户类中定义一个方法输出当前用户对象的账号、用户名和密码的信息；然后在主方法调用输出；
        private string account;
        private string username;
        private string password;

        public string Account 
        {
            get { return this.account; }
            set { this.account = value;}
        }
        public string Username
        {
            get { return this.username; }
            set { this.username = value; }
        }
        public string Password
        {
            get { return this.password; }
            set { this.password = value; }
        }
        
        public void Test()
        {
            Console.WriteLine("我的账号是{0}，我的用户名是{1}，我的密码是{2}",this.account,this.username,this.password);
        }
    }
    

}
